package com.yue.jersey.practice.model;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/12/2<br/>
 *
 * @author QiuYang
 */
public class SNameModel {
    @Valid
    @NotEmpty
    private List<NameModel> lists = new ArrayList<>();

    public List<NameModel> getLists() {
        return lists;
    }

    public void setLists(List<NameModel> lists) {
        this.lists = lists;
    }

    public static class NameModel{
        @NotNull
        private String name;

        private String test;

        public String getTest() {
            return test;
        }

        public void setTest(String test) {
            this.test = test;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
